package com.kotlin.myapplicationd.base;

import android.app.Activity;

/**
 * Created by binghu on 8/10/16.
 * BaseOperation for project
 */
public class BaseOperation extends Operation {

    public BaseOperation(Activity mContext) {
        super(mContext);
    }

    /**
     * jump to activity which need login
     *
     * @param activity need login
     */
    public void forwardNeedLogin(Class activity) {
        if (checkLogin()) {
            forward(activity);
        } else {
            //forward(LoginActivity.class);
        }
    }


    /**
     * check login state
     *
     * @return
     */
    public boolean checkLogin() {
        //return Constants.uid > 0L;
        return true;
    }


}
